<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >提现记录</a></li>

		</ul>
		<form class="well form-search" name="form1" method="post" action="">
		  订单状态：
			<select class="select_2" name="status">
				<option value="">全部</option>
				<option value="0" <if condition="$formget.status eq '0'">selected</if> >未处理</option>
				<option value="1" <if condition="$formget.status eq '1'">selected</if> >提现成功</option>			
				<option value="2" <if condition="$formget.status eq '2'">selected</if> >拒绝提现</option>			
			</select>
			提交时间：
			<input type="text" name="start_time" class="js-date date" value="{$formget.start_time}" style="width: 80px;" autocomplete="off">-
			<input type="text" class="js-date date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
			关键字： 
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入会员id、订单号...">
			<input type="button" class="btn btn-primary" value="搜索" onclick="form1.action='{:U('Cash/index')}';form1.submit();"/>
			<input type="button" class="btn btn-primary" style="background-color: #1dccaa;" value="导出" onclick="form1.action='{:U('Cash/export')}';form1.submit();"/>
			<div class="admin_main">
				<a>当前提现总金额：{$cash['total']}</a>
				<if condition="$cash['type'] eq '0'" >
					<a> 成功提现金额：{$cash['success']}</a>
					<a>待处理金额：{$cash['fail']}</a>
				</if>
			</div>
		</form>	
		
		<form method="post" class="js-ajax-form" >
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">ID</th>
						<th>主播名称</th>						
						<th>兑换{$configpub['name_votes']}</th>
						<th>提现金额</th>
						<th>提现账号</th>
					<!-- 	<th>商户订单号</th> -->
						<th>第三方支付订单号</th>
						<th>状态</th>
						<th>提交时间</th>
						<th>处理时间</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>$status=array("0"=>"未处理","1"=>"提现成功", "2"=>"拒绝提现");</php>
					<foreach name="lists" item="vo">
					<tr>
						<td align="center">{$vo.id}</td>
						<td>{$vo['userinfo']['user_nicename']} ( {$vo['uid']} )</td>	
						<td>{$vo['votes']}</td>
						<td>{$vo['money']}</td>				
						<td>
                            {$type[$vo['type']]}<br>{$vo['name']}<br>{$vo['account']}<br>{$vo['account_bank']}
                        </td>				
						<!-- <td>{$vo['orderno']}</td> -->
						<td>{$vo['trade_no']}</td>
						<td>{$status[$vo['status']]}</td>
						<td>{$vo.addtime|date="Y-m-d H:i:s",###}</td>						
						<td>
						 <if condition="$vo['status'] eq '0'" >
						    未处理
						 <else/>
						     {$vo.uptime|date="Y-m-d H:i:s",###}
						 </if>						
						 </td>
						<td align="center">	
						<if condition="$vo['status'] eq '0'" >
						    <a href="{:U('Cash/edit',array('id'=>$vo['id']))}" >编辑</a>  
						 </if>	
							<!-- <a href="{:U('Cash/del',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗？">删除</a>  -->
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>

		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>